Integrand size = 21, antiderivative size = 116 \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=-\frac {a \left (a^2-3 b^2\right ) \cos (c+d x)}{d}+\frac {3 a^2 b \cos ^2(c+d x)}{2 d}+\frac {a^3 \cos ^3(c+d x)}{3 d}-\frac {b \left (3 a^2-b^2\right ) \log (\cos (c+d x))}{d}+\frac {3 a b^2 \sec (c+d x)}{d}+\frac {b^3 \sec ^2(c+d x)}{2 d} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3957, 2800, 908} \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=\frac {a^3 \cos ^3(c+d x)}{3 d}-\frac {a \left (a^2-3 b^2\right ) \cos (c+d x)}{d}-\frac {b \left (3 a^2-b^2\right ) \log (\cos (c+d x))}{d}+\frac {3 a^2 b \cos ^2(c+d x)}{2 d}+\frac {3 a b^2 \sec (c+d x)}{d}+\frac {b^3 \sec ^2(c+d x)}{2 d} \]
[In]
[Out]
Rule 908
Rule 2800
Rule 3957
Rubi steps \begin{align*} \text {integral}& = -\int (-b-a \cos (c+d x))^3 \tan ^3(c+d x) \, dx \\ & = \frac {\text {Subst}\left (\int \frac {(-b+x)^3 \left (a^2-x^2\right )}{x^3} \, dx,x,-a \cos (c+d x)\right )}{d} \\ & = \frac {\text {Subst}\left (\int \left (a^2 \left (1-\frac {3 b^2}{a^2}\right )-\frac {a^2 b^3}{x^3}+\frac {3 a^2 b^2}{x^2}+\frac {-3 a^2 b+b^3}{x}+3 b x-x^2\right ) \, dx,x,-a \cos (c+d x)\right )}{d} \\ & = -\frac {a \left (a^2-3 b^2\right ) \cos (c+d x)}{d}+\frac {3 a^2 b \cos ^2(c+d x)}{2 d}+\frac {a^3 \cos ^3(c+d x)}{3 d}-\frac {b \left (3 a^2-b^2\right ) \log (\cos (c+d x))}{d}+\frac {3 a b^2 \sec (c+d x)}{d}+\frac {b^3 \sec ^2(c+d x)}{2 d} \\ \end{align*}
Time = 0.86 (sec) , antiderivative size = 102, normalized size of antiderivative = 0.88 \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=\frac {-9 a \left (a^2-4 b^2\right ) \cos (c+d x)+9 a^2 b \cos (2 (c+d x))+a^3 \cos (3 (c+d x))-36 a^2 b \log (\cos (c+d x))+12 b^3 \log (\cos (c+d x))+36 a b^2 \sec (c+d x)+6 b^3 \sec ^2(c+d x)}{12 d} \]
[In]
[Out]
Time = 2.53 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.00
method | result | size |
derivativedivides | \(\frac {-\frac {a^{3} \left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )}{3}+3 a^{2} b \left (-\frac {\sin \left (d x +c \right )^{2}}{2}-\ln \left (\cos \left (d x +c \right )\right )\right )+3 a \,b^{2} \left (\frac {\sin \left (d x +c \right )^{4}}{\cos \left (d x +c \right )}+\left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )\right )+b^{3} \left (\frac {\tan \left (d x +c \right )^{2}}{2}+\ln \left (\cos \left (d x +c \right )\right )\right )}{d}\) | \(116\) |
default | \(\frac {-\frac {a^{3} \left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )}{3}+3 a^{2} b \left (-\frac {\sin \left (d x +c \right )^{2}}{2}-\ln \left (\cos \left (d x +c \right )\right )\right )+3 a \,b^{2} \left (\frac {\sin \left (d x +c \right )^{4}}{\cos \left (d x +c \right )}+\left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )\right )+b^{3} \left (\frac {\tan \left (d x +c \right )^{2}}{2}+\ln \left (\cos \left (d x +c \right )\right )\right )}{d}\) | \(116\) |
parts | \(-\frac {a^{3} \left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )}{3 d}+\frac {b^{3} \left (\frac {\tan \left (d x +c \right )^{2}}{2}+\ln \left (\cos \left (d x +c \right )\right )\right )}{d}+\frac {3 a \,b^{2} \left (\frac {\sin \left (d x +c \right )^{4}}{\cos \left (d x +c \right )}+\left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )\right )}{d}+\frac {3 a^{2} b \left (-\frac {\sin \left (d x +c \right )^{2}}{2}-\ln \left (\cos \left (d x +c \right )\right )\right )}{d}\) | \(124\) |
parallelrisch | \(\frac {72 \left (1+\cos \left (2 d x +2 c \right )\right ) b \left (a^{2}-\frac {b^{2}}{3}\right ) \ln \left (\sec \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )-72 \left (1+\cos \left (2 d x +2 c \right )\right ) b \left (a^{2}-\frac {b^{2}}{3}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )-72 \left (1+\cos \left (2 d x +2 c \right )\right ) b \left (a^{2}-\frac {b^{2}}{3}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+\left (-16 a^{3}+144 a \,b^{2}-12 b^{3}\right ) \cos \left (2 d x +2 c \right )+\left (-7 a^{3}+36 a \,b^{2}\right ) \cos \left (3 d x +3 c \right )+9 \cos \left (4 d x +4 c \right ) a^{2} b +a^{3} \cos \left (5 d x +5 c \right )+\left (-26 a^{3}+252 a \,b^{2}\right ) \cos \left (d x +c \right )-16 a^{3}-9 a^{2} b +144 a \,b^{2}+12 b^{3}}{24 d \left (1+\cos \left (2 d x +2 c \right )\right )}\) | \(243\) |
risch | \(3 i a^{2} b x +\frac {6 i b \,a^{2} c}{d}+\frac {{\mathrm e}^{3 i \left (d x +c \right )} a^{3}}{24 d}+\frac {3 \,{\mathrm e}^{2 i \left (d x +c \right )} a^{2} b}{8 d}-\frac {3 a^{3} {\mathrm e}^{i \left (d x +c \right )}}{8 d}+\frac {3 \,{\mathrm e}^{i \left (d x +c \right )} a \,b^{2}}{2 d}-\frac {3 a^{3} {\mathrm e}^{-i \left (d x +c \right )}}{8 d}+\frac {3 \,{\mathrm e}^{-i \left (d x +c \right )} a \,b^{2}}{2 d}+\frac {3 \,{\mathrm e}^{-2 i \left (d x +c \right )} a^{2} b}{8 d}+\frac {{\mathrm e}^{-3 i \left (d x +c \right )} a^{3}}{24 d}-i b^{3} x -\frac {2 i b^{3} c}{d}+\frac {2 b^{2} \left (3 a \,{\mathrm e}^{3 i \left (d x +c \right )}+b \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )} a \right )}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}-\frac {3 b \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) a^{2}}{d}+\frac {b^{3} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{d}\) | \(275\) |
norman | \(\frac {-\frac {4 a^{3}-36 a \,b^{2}}{3 d}-\frac {\left (6 a^{2} b -2 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{d}-\frac {2 \left (2 a^{3}-3 a^{2} b +6 a \,b^{2}-3 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{d}-\frac {\left (4 a^{3}+18 a^{2} b -36 a \,b^{2}-6 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{3 d}+\frac {2 \left (10 a^{3}+9 a^{2} b -18 a \,b^{2}+9 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{3 d}}{\left (-1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{2} \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{3}}+\frac {b \left (3 a^{2}-b^{2}\right ) \ln \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )}{d}-\frac {b \left (3 a^{2}-b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{d}-\frac {b \left (3 a^{2}-b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{d}\) | \(284\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.06 \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=\frac {4 \, a^{3} \cos \left (d x + c\right )^{5} + 18 \, a^{2} b \cos \left (d x + c\right )^{4} - 9 \, a^{2} b \cos \left (d x + c\right )^{2} + 36 \, a b^{2} \cos \left (d x + c\right ) - 12 \, {\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (d x + c\right )^{3} - 12 \, {\left (3 \, a^{2} b - b^{3}\right )} \cos \left (d x + c\right )^{2} \log \left (-\cos \left (d x + c\right )\right ) + 6 \, b^{3}}{12 \, d \cos \left (d x + c\right )^{2}} \]
[In]
[Out]
\[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=\int \left (a + b \sec {\left (c + d x \right )}\right )^{3} \sin ^{3}{\left (c + d x \right )}\, dx \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 98, normalized size of antiderivative = 0.84 \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=\frac {2 \, a^{3} \cos \left (d x + c\right )^{3} + 9 \, a^{2} b \cos \left (d x + c\right )^{2} - 6 \, {\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (d x + c\right ) - 6 \, {\left (3 \, a^{2} b - b^{3}\right )} \log \left (\cos \left (d x + c\right )\right ) + \frac {3 \, {\left (6 \, a b^{2} \cos \left (d x + c\right ) + b^{3}\right )}}{\cos \left (d x + c\right )^{2}}}{6 \, d} \]
[In]
[Out]
none
Time = 0.40 (sec) , antiderivative size = 128, normalized size of antiderivative = 1.10 \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=-\frac {{\left (3 \, a^{2} b - b^{3}\right )} \log \left (\frac {{\left | \cos \left (d x + c\right ) \right |}}{{\left | d \right |}}\right )}{d} + \frac {6 \, a b^{2} \cos \left (d x + c\right ) + b^{3}}{2 \, d \cos \left (d x + c\right )^{2}} + \frac {2 \, a^{3} d^{8} \cos \left (d x + c\right )^{3} + 9 \, a^{2} b d^{8} \cos \left (d x + c\right )^{2} - 6 \, a^{3} d^{8} \cos \left (d x + c\right ) + 18 \, a b^{2} d^{8} \cos \left (d x + c\right )}{6 \, d^{9}} \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 99, normalized size of antiderivative = 0.85 \[ \int (a+b \sec (c+d x))^3 \sin ^3(c+d x) \, dx=\frac {\frac {\frac {b^3}{2}+3\,a\,\cos \left (c+d\,x\right )\,b^2}{{\cos \left (c+d\,x\right )}^2}-\ln \left (\cos \left (c+d\,x\right )\right )\,\left (3\,a^2\,b-b^3\right )+\cos \left (c+d\,x\right )\,\left (3\,a\,b^2-a^3\right )+\frac {a^3\,{\cos \left (c+d\,x\right )}^3}{3}+\frac {3\,a^2\,b\,{\cos \left (c+d\,x\right )}^2}{2}}{d} \]
[In]
[Out]